package be.djdb.generators.data;

import java.util.LinkedList;
import java.util.List;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.swing.JComponent;

import be.djdb.generators.Menu;
import be.djdb.utils.Projectresources;
public class SuperItems{
	public SuperItemsSingleton items = null;
	protected List<JComponent> tools = new LinkedList<JComponent>();

	/**<%@ page contentType="text/html; charset=" %>
	 * @param String resourcebundlename 
	 * (name => name-lbl.properties)(name => name-tooltip.properties)
	 * or with locale
	 * (name => name-lbl_nl.properties)(name => name-tooltip_nl.properties)
	 * or country with locale
	 * (name => name-lbl_BE_nl.properties)(name => name-tooltip_BE_nl.properties)
	 */
	public SuperItems(String resourcebunlename) {
		items = SuperItemsSingleton.getInstance(resourcebunlename);
		
	}
    protected static  void log(Level level, String msg ){
        String tag ="<>>>>*UpdateCV-�L Roegiers 80072631156*<<<<>";
        //this.msg += tag + msg + "<br />";
        Logger.getLogger(Menu.class.getName()).log(level, tag + msg);
    }
    protected static  void followlog(String msg){
        String tag ="<>>>>*ACTION S*<<<<>";
        log(Level.WARNING, tag +"FOLLOW====>"+ msg);
    }
	 /**<%@ page contentType="text/html; charset=" %>
	 * @param Bundlename
	 * @return Bundletext;
	 */
	public String getlblFor(String bundleKey){
	    return items.resources.getlblFor(bundleKey);
	}
	 /**<%@ page contentType="text/html; charset=" %>
	 * @param Bundlename
	 * @return Bundletext;
	 */
	protected String getTooltipFor(String bundleKey){
		return items.resources.getTooltipFor(bundleKey);
	}
}
